package com.hiwhitley.himei.contract;

import com.hiwhitley.himei.entity.Game;
import com.hiwhitley.himei.entity.ScreenItem;
import com.hiwhitley.himei.mvpframe.BaseModel;
import com.hiwhitley.himei.mvpframe.BasePresenter;
import com.hiwhitley.himei.mvpframe.BaseView;

import java.util.List;

import rx.Observable;

/**
 * Created by hiwhitley on 2016/10/20.
 */

public interface GameDetailContract {
    interface Model extends BaseModel {
        Observable<Game> getGameDetail(int gid);
    }
    interface View extends BaseView {
        void showGameDetail(Game game);
        void showGameScreens(List<ScreenItem> screenItemList);
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void loadGameDetail(int gid);
    }
}
